# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-scala
pkgver=0.19.0_git20220326
_gitrev=046776b320415119eff6c6c1a6e7f3882d269eb6
pkgrel=0
pkgdesc="Scala grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-scala"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-scala/archive/$_gitrev/tree-sitter-scala-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
dcaf9da557ed1bc037fad9a1898519de532c3fb9e07b86ee90569017ab16030b57559e48d43da75e736784557dacda749a9c830703a0398b3bcf06db0179cb38  tree-sitter-scala-046776b320415119eff6c6c1a6e7f3882d269eb6.tar.gz
"
